//
//  RCNaviegationController.m
//  RCsinaMicroBlog
//
//  Created by Mr.Ray on 15/1/31.
//  Copyright (c) 2015年 Ray.peng. All rights reserved.
//

#import "RCNaviegationController.h"

@implementation RCNaviegationController
//第一次加载是使用，自定义导航栏主题
+ (void)initialize{
    // 取出导航条item的外观对象(主题对象)
    UIBarButtonItem *item = [UIBarButtonItem appearance];
    //设置文字状态颜色
    NSMutableDictionary *md = [NSMutableDictionary dictionary];
    md[NSForegroundColorAttributeName] = [UIColor orangeColor];
    [item setTitleTextAttributes:md forState:UIControlStateNormal];
    
    //设置高亮状态文字颜色
    NSMutableDictionary *hm = [NSMutableDictionary dictionary];
    hm[NSForegroundColorAttributeName] = [UIColor lightGrayColor];
    [item setTitleTextAttributes:hm forState:UIControlStateHighlighted];
    
}

@end
